<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2019/10/30
 * Time: 17:02
 */

namespace app\adminapiv3\controller;

//用户操作记录
class ServerOptionHistory extends Base
{
    /**
     * @name 列表
     * @author wx
     * @date 2019/10/30 17:05
     */
    public function list()
    {
        //接收参数
        $params['user_name'] = $this->filterInput('user_name','get');
        $params['type'] = $this->filterInput('type','get');
        $params['ip'] = $this->filterInput('ip','get');
        $params['content'] = $this->filterInput('content','get');
        $params['ctime'] = $this->filterInput('ctime','get');

        $server = new \app\adminapiv3\service\ServerOptionHistory();
        $list = $server->list($params, $this->getLimit());


        $this->jsonOutPut($list);
    }

    /**
     * @name 首页数据
     * @author wx
     * @date 2019/10/30 17:05
     */
    public function indexData()
    {
        $server = new \app\adminapiv3\service\ServerOptionHistory();
        $list = $server->toDo('indexData');

        $this->jsonOutPut($list);
    }
}